<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
        background:颜色 url(图片路径) 重复方式 定位/尺寸;例:background: #0f0 url(./icons/draw.png) no-repeat 0 0/50% 50%;
        background-color
        background-image
        background-repeat
        background-size
         */
        .box {
            /* 设置背景需要一个区域 */
            width: 200px;
            height: 300px;
            border: 1px solid #222;
            /* background: #0f0 url(./icons/draw.png) no-repeat; */
            /* background: url(./icons/draw.png) no-repeat 0 0/50% 50%; */
            /* background: #0f0 url(./icons/draw.png) no-repeat 0 0/50% 50%; */
            background: url(./icons/draw.png) no-repeat;
            background-size: cover;
        }
    </style>
</head>

<body>
    <!-- background 属性讲解：背景图. 背景定位. 背景重复； -->

    <div class="box">

    </div>
</body>

</html>